package cn.tedu.travelsystem.review.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.Date;

@Data
public class ReviewAddParam {

    @ApiModelProperty(value = "用户id", required = true)
    private Integer userId;

    @ApiModelProperty(value = "产品id", required = true)
    private Integer productId;
    @ApiModelProperty(value = "产品类型", required = true)
    private String productType;

    @ApiModelProperty(value = "评分", required = true)
    @Min(1)
    @Max(5)
    private Integer rating;

    @ApiModelProperty(value = "评论内容", required = true)
    private String comment;

    @ApiModelProperty(value = "评论时间", required = true)
    private Date reviewTime; // 如果需要传递评论时间，可以添加此字段
}
